//
//  Tracks.m
//  Travel_M_Travel
//
//  Created by dlios on 15-3-26.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Tracks.h"

@implementation Tracks

- (void)dealloc
{
    [_trackId release];
    [_title release];
    [_playUrl32 release];
    [_playUrl64 release];
    [_downloadUrl release];
    [_coverSmall release];
    [_likes release];
    [_playtimes release];
    [_coverLarge release];
    [super dealloc];
}

- (instancetype)initWithDic:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
        self.isFinish = NO;
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.downloadUrl forKey:@"downloadUrl"];
    [aCoder encodeObject:self.title forKey:@"title"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self =[super init];
    if (self) {
        self.downloadUrl = [aDecoder decodeObjectForKey:@"downloadUrl"];
        self.title = [aDecoder decodeObjectForKey:@"title"];
    }
    return self;
}




@end
